package com.mall4j.cloud.order.interfaces;

import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.*;

/**
 * @author llc
 */
@RestController
@RequestMapping("/multi/order")
@Tag(name = "商家后台订单管理")
public class MerchantOrderController {

    /**
     * 分页获取
     */
    @GetMapping("/page")
    @Operation(summary = "分页获取订单详情")
    public void page() {

    }

    /**
     * 获取信息
     */
    @GetMapping("/order_info/{orderId}")
    @Operation(summary = "根据id获取订单详情")
    public void info(@PathVariable("orderId") Long orderId) {
        // 订单和订单项

    }

    /**
     * 获取订单用户下单地址
     */
    @GetMapping("/order_addr/{orderAddrId}")
    @Operation(summary = "获取订单用户下单地址")
    public void getOrderAddr(@PathVariable("orderAddrId") Long orderAddrId) {

    }

    /**
     * 订单项待发货数量查询
     */
    @GetMapping("/order_item_and_address/{orderId}")
    @Operation(summary = "订单项待发货数量查询")
    public void getOrderItemAndAddress(@PathVariable("orderId") Long orderId) {

    }

    /**
     * 发货
     */
    @PostMapping("/delivery")
    @Operation(summary = "发货")
    public void delivery() {

    }

}
